<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?>
<p class="categoryheader"><?=$pageParams["title"];?> <? if ($type=="edit") { ?> -- <i><?=$iniInfo["name"];?> ID: <?=$iniInfo["ID"];?></i><? } ?></p>
<form method="post" action="/monitor/query_inifile.php" name="bdform" id="bdform">


<table border="0" cellpadding="5" cellspacing="1" width="98%" class="formtable">
<tr valign="top">
	<td class="formfielddesc">Title<br />
		<span class="required">{required}</span></td>
	<td class="formfield">
		<input type="text" value="<?=$iniInfo["name"];?>" name="name" class="textfield" />
	</td>
</tr>
<?
if ($type=="addnew")
{
?>
<tr valign="top">
	<td class="formfielddesc">ID<br />
		<span class="required">{required}</span></td>
	<td class="formfield">
		<input type="text" value="<?=$iniInfo["ID"];?>" name="iniID" class="textfield" />
	</td>
</tr>
<?
}
?>
<tr valign="top">
	<td class="formfielddesc">INI File:<br />
	</td>
	<td class="formfield">
	<style>
	
	.textareafield
	{
		width: 600px;
		height: 400px;
	}
	
	</style>
		<textarea name="inifile" class="textareafield"><?=$iniInfo["inifile"];?></textarea>
	
	</td>
</tr>
<tr valign="top">
	<td class="formfielddesc" colspan="2">
	<div align="center"><?
	if ($type=="addnew")
	{
	?>
		<input type="hidden" name="action" value="addini" />
	<?
	}
	
	if ($type=="edit")
	{
	?>
		<input type="hidden" name="action" value="editini" />
		<input type="hidden" name="iniID" value="<?=$_REQUEST["iniID"];?>" />
	<?
	}
	?></div>
	
	</td>
</tr>
</table>

<br />



</form>
